<?php

/* html/product/productDel.tpl.html */
class __TwigTemplate_2347d4290263228ed209d95a6b4ae87f4302cf163a77479c1cf6dbda19fcc7ba extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "
<!DOCTYPE html>
<html lang=\"zh-CN\">

<head>
\t<meta charset=\"utf-8\">
\t<meta name=\"viewport\" content=\"initial-scale=1.0, maximum-scale=1.0, user-scalable=no\" />
\t<title>派乐熊详情页111</title>
\t<link rel=\"stylesheet\" href=\"/static/product/css/ui_box.css\" />
\t<link rel=\"stylesheet\" href=\"/static/product/css/plx_main.css\" />
\t<link rel=\"stylesheet\" href=\"/static/product/css/swiper-3.4.2.min.css\" />
\t<link rel=\"stylesheet\" href=\"/static/product/css/photoswipe.css\" />
\t<link rel=\"stylesheet\" href=\"/static/product/css/default-skin.css\" />
\t<link rel=\"stylesheet\" href=\"/static/common/css/mescroll.min.css\">
</head>

<body>
\t<!--header-->
\t<!--<header id=\"header\" class=\"ub ub-ac ub-pc sc-bg1 border-b\">
\t\t<div class=\"arrow-left ub-img\"></div>
\t\t<p class=\"ulev1 text-color1 tx-c\">商品详情</p>
\t\t<img class=\"collection\" src=\"/static/product/img/collection-gray.png\" />
\t\t<img class=\"share\" src=\"/static/product/img/share.png\" />
\t</header>-->
\t<!--内容部分-->
\t<div id=\"content\">
\t\t<!--轮播图-->
\t\t<div class=\"swiper-container\">
\t\t\t<div class=\"swiper-wrapper\">
\t\t\t\t<!--<div class=\"swiper-slide\">
\t\t\t        \t<img class=\"banner\" src=\"\" />
\t\t\t        </div>
\t\t\t        <div class=\"swiper-slide\">
\t\t\t        \t<img class=\"banner\" src=\"\" />
\t\t\t        </div>-->
\t\t\t</div>
\t\t\t<div class=\"swiper-pagination\"></div>
\t\t</div>
\t\t<div id=\"vue\">
\t\t\t<div class=\"umar-a\">
\t\t\t\t<p class=\"details\">[goods_name]</p>
\t\t\t\t<!--商品详情-->
\t\t\t\t<p class=\"price\"><span>¥</span><span id=\"sale_price\">[sale_price]</span>
\t\t\t\t\t<del>¥</del>
\t\t\t\t\t<del id=\"goods_price\">[goods_price]</del>
\t\t\t\t</p>
\t\t\t\t
\t\t\t</div>
\t\t\t<div class=\"dividingline\"></div>
\t\t\t<p class=\"description\">仅售580元，价值5160元单人成人学游泳培训班12课时6节课包含门票，节假日通用！</p>
\t\t\t<div class=\"dividingline\"></div>
\t\t\t<div class=\"umar-a\">
\t\t\t\t<p class=\"storename\">[store_name]</p>
\t\t\t\t<div class=\"ub ub-ac address\">
\t\t\t\t\t<div>
\t\t\t\t\t\t<img class=\"circle\" src=\"/static/product/img/circle.png\" />
\t\t\t\t\t</div>
\t\t\t\t\t<p class=\"ub-f1\">[store_address]</p>
\t\t\t\t\t<span class=\"ub-f1\">[distance]</span>
\t\t\t\t</div>
\t\t\t\t<div class=\"ub ub-ac address\">
\t\t\t\t\t<div>
\t\t\t\t\t\t<img class=\"phone\" src=\"/static/product/img/phone.png\" />
\t\t\t\t\t</div>
\t\t\t\t\t<p onclick='tel_store(this)'>[store_tel]</>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"dividingline\"></div>
\t\t</div>

\t\t<div class=\"ub ub-pc ub-ac tab\" id=\"tab\">
\t\t\t<p class=\"on\">活动详情</p>
\t\t\t<p>购买须知</p>
\t\t\t<p>商户介绍</p>
\t\t</div>
\t\t<!--活动详情-->
\t\t<div id=\"xiangqing\" class=\"mescroll\" style=\"display: none;\">
\t\t\t<div id=\"Details\" class=\"umar-a\">
\t\t\t\t<p>派乐熊儿童游泳体验馆致力于让孩子们，每天健康运动一小时，每周三次课，可多选参与，在学龄前，为孩子打下坚实的身体基础。全程专业教练指导陪护，为孩子提供安全的锻炼环境，男教练特有的教学方式，更加促进孩子的团结、坚韧品质。</p>
    \t\t\t<p>所有套系在拍摄条件允许下，均可拍摄指定外景1套（含在总套数内）。
底片除赠送精修张数以外另需购买，儿童照／新生儿照：50元精修，60元入册；亲子照／孕妇照：70元精修，80元入册。<p />
\t\t\t\t<p>所有套系可拍全家福及合照，共可免费入册5-10张（含在总精修张数内），大人服装造型自备，限5人入境。所有产品中的照片均选自精修。<p />
\t\t\t\t<p>至少提前一周以上预约，约满顺延，不接受未经预约直接到店拍照。<p />
\t\t\t\t<p>新生儿宝宝7-15天拍摄为佳，限拍30天内宝宝。<p />
\t\t\t\t<p>孕妇照怀孕7-8个月拍摄为佳。<p />
\t\t\t\t<p>拍摄不满意可当场提出免费重拍。<p />
\t\t\t\t<p>自购买之日起7天内未拍摄可无理由退款。<p />
\t\t\t\t<p>拍摄过程默认同步录制花絮，顾客可选择性购买花絮及剪辑成品。<p />
\t\t\t\t<p>六环内产品免费物流。（通州店除外）<p />
\t\t\t\t<p>取件需知：自选片后30甜取件，如需配送另加3天左右，节假日顺延；VIP需要定稿的，自定稿后30甜取件，如需配送另加3天左右，节假日顺延；取件后有问题的需在24小时内提出，超过24小时视为无问题，资料将被系统自动清除，无法提供查询服务。<p />
\t\t\t\t<p>特别提示：顾客在接受整个服务过程中，出现任何问题均可拨打客服电话123456789进行投诉。</p>
\t\t\t</div>
\t\t\t<div class=\"bg-blue\"></div>
\t\t\t<div class=\"ub ub-ac comment\">
\t\t\t\t<p>评论</p>
\t\t\t\t<p>98条评论</p>
\t\t\t</div>
\t\t\t<div class=\"dividingline\"></div>
\t\t\t<div class=\"comments-list\" id=\"comments-list\">

\t\t\t</div>
\t\t\t<div class=\"comment-wrap\">
\t\t\t\t<div class=\"ub umar-t\" v-for=\"(item,index) of commentList\">
\t\t\t\t\t<img class=\"portrait\" :src=\"item.avatar?item.avatar:'/'\" />
\t\t\t\t\t<div class=\"ub-f1 ub ub-ver discuss\">
\t\t\t\t\t\t<p>[item.user_name]</p>
\t\t\t\t\t\t<p>[item.utime]</p>
\t\t\t\t\t\t<p>[item.content]</p>
\t\t\t\t\t\t<div class=\"ub uppic\" v-for=\"url of item.img_url\">
\t\t\t\t\t\t\t<img :src=\"url\" @click='addAtLast(index)'/>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"ub ub-ac praise\">
\t\t\t\t\t\t\t<!-- <img src=\"img/preview.png\" />
\t\t\t\t\t\t\t<p>12387</p> -->
\t\t\t\t\t\t\t<img class=\"praise_off\" :src=\"[item.iszan]\" v-bind:attrid='item.id' onclick='praise_click(this)'/>
\t\t\t\t\t\t\t<p class=\"amounts\">[item.zan]</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- <img class=\"portrait\" src=\"img/portrait.png\" />
\t\t\t\t\t<div class=\"ub-f1 ub ub-ver discuss\">
\t\t\t\t\t\t<p>安静的生活</p>
\t\t\t\t\t\t<p>04.09.2017 23:02</p>
\t\t\t\t\t\t<p>带着宝宝一起去体验的，环境非常好，服务到位。</p>
\t\t\t\t\t\t<div class=\"ub uppic\">
\t\t\t\t\t\t\t<img src=\"img/upload_pic.png\" />
\t\t\t\t\t\t\t<img src=\"img/upload_pic.png\" />
\t\t\t\t\t\t\t<img src=\"img/upload_pic.png\" />
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"ub ub-ac praise\"> -->
\t\t\t\t\t<!-- <img src=\"img/preview.png\" />
\t\t\t\t\t\t\t<p>12387</p> -->
\t\t\t\t\t<!-- <img class=\"praise_off\" src=\"img/praise_off.png\" />
\t\t\t\t\t\t\t<p class=\"amounts\">12</p>
\t\t\t\t\t\t</div> -->
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t
\t<!--购买须知-->
\t<div id=\"xuzhi\" style=\"display: none;\">
\t\t<p>有效期</p>
\t\t<p>[yxq]</p>
\t\t<p>使用时间</p>
\t\t<p>[sysj]</p>
\t\t<p>预约信息</p>
\t\t<p>[yyxx]</p>
\t\t<p>适用人数</p>
\t\t<p>[syrs]</p>
\t\t<p>温馨提示</p>
\t\t<p>[wxts]</p>
\t\t<div style=\"height: 28.2rem;\"></div>
\t</div>
\t<!--商户介绍-->
\t<div id=\"shanghu\" style=\"display: none;\">
\t\t<div class=\"ub ub-fh\">
\t\t\t<img class=\"logo\" src=\"/static/product/img/logo.png\" />
\t\t\t<div class=\"ub-f1 ub ub-ver tiyan\">
\t\t\t\t<p>[introduce]</p>
\t\t\t\t<p>以游泳比赛、游泳水中运动、游泳培训的方式来提高社会各界人士对体育的热爱。</p>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"directions\">
\t\t\t<p>派乐熊儿童游泳体验馆.响应国家号召、更具国家体委贯彻全民健身计划纲要，实施全民健身计划、引导广大群众积极的参与、服务优先，教学优先，诚信优先，是我中心的服务宗旨。经过多年的努力得到了社会各界的认可。丰富的教育资源、尽责的教练，为广大体育爱好者提供各种项目技术动作分析和图解等服务、通过本网站为大多数体育运动爱好者提供分钟项目相关的知识和理论，为运动爱好者了解运动常识，正确运用各种理论去指导自己运动提供理论依据，为学员之间学习经验的交流提供很好的空间和平台。</p>
\t\t\t<p>我们的宗旨：用运动调节身心，让健康充满人间。<br /> 我们的理念：满足客户的一切运动需求
\t\t\t\t<br /> 我们的口号：尽情享受运动的无限乐趣／正确理解运动的美妙时刻／真正成为运动的英雄楷模／完全满意运动的健身效果
\t\t\t</p>
\t\t</div>
\t\t<div class=\"picture\">
\t\t\t<img src=\"/static/product/img/picture.png\" />
\t\t\t<img src=\"/static/product/img/picture.png\" />
\t\t\t<img src=\"/static/product/img/picture.png\" />
\t\t</div>
\t</div>
\t</div>
\t<!--点击图片预览放大效果-->
\t<div class=\"pswp\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">
\t\t<div class=\"pswp__bg\"></div>
\t\t<div class=\"pswp__scroll-wrap\">
\t\t\t<div class=\"pswp__container\">
\t\t\t\t<div class=\"pswp__item\"></div>
\t\t\t\t<div class=\"pswp__item\"></div>
\t\t\t\t<div class=\"pswp__item\"></div>
\t\t\t</div>
\t\t\t<div class=\"pswp__ui pswp__ui--hidden\">
\t\t\t\t<div class=\"pswp__top-bar\">
\t\t\t\t\t<div class=\"pswp__counter\"></div>
\t\t\t\t\t<button class=\"pswp__button pswp__button--close\" title=\"Close (Esc)\"></button>
\t\t\t\t\t<button class=\"pswp__button pswp__button--share\" title=\"Share\"></button>
\t\t\t\t\t<button class=\"pswp__button pswp__button--fs\" title=\"Toggle fullscreen\"></button>
\t\t\t\t\t<button class=\"pswp__button pswp__button--zoom\" title=\"Zoom in/out\"></button>
\t\t\t\t\t<div class=\"pswp__preloader\">
\t\t\t\t\t\t<div class=\"pswp__preloader__icn\">
\t\t\t\t\t\t\t<div class=\"pswp__preloader__cut\">
\t\t\t\t\t\t\t\t<div class=\"pswp__preloader__donut\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pswp__share-modal pswp__share-modal--hidden pswp__single-tap\">
\t\t\t\t\t<div class=\"pswp__share-tooltip\"></div>
\t\t\t\t</div>
\t\t\t\t<button class=\"pswp__button pswp__button--arrow--left\" title=\"Previous (arrow left)\">
\t\t            </button>
\t\t\t\t<button class=\"pswp__button pswp__button--arrow--right\" title=\"Next (arrow right)\">
\t\t            </button>
\t\t\t\t<div class=\"pswp__caption\">
\t\t\t\t\t<div class=\"pswp__caption__center\"></div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<footer id=\"pay\">
\t\t<p>立即购买</p>
\t</footer>
</body>
<script type=\"text/javascript\" src=\"/static/common/js/jquery-1.11.2.min.js\"></script>
<script type=\"text/javascript\" src=\"/static/product/js/swiper-3.4.2.min.js\"></script>
<script type=\"text/javascript\" src=\"/static/product/js/photoswipe-ui-default.min.js\"></script>
<script type=\"text/javascript\" src=\"/static/product/js/photoswipe.min.js\"></script>
<script src=\"/static/common/js/mescroll.min.js\"></script>
<script type=\"text/javascript\" src=\"/static/common/js/vue.js\"></script>
<script type=\"text/javascript\" src=\"/static/common/js/jockey.min.js\"></script>
<script>
\tvar gid = ";
        // line 224
        echo twig_escape_filter($this->env, ($context["gid"] ?? null), "html", null, true);
        echo ";
\tvar lat = ";
        // line 225
        echo twig_escape_filter($this->env, ($context["lat"] ?? null), "html", null, true);
        echo ";
\tvar lon = ";
        // line 226
        echo twig_escape_filter($this->env, ($context["lon"] ?? null), "html", null, true);
        echo ";
\tvar gname = '';
\tvar gsale_price = ''; 
\t(function () {
\t\t// 接口
\t\tvar Api = {
\t\t\tbase: 'https://paile.yanfaguanjia.cn',
\t\t\triji: '/diary/GetLeftComment',
\t\t\trijiList: '/diary/GetRecomDiary',
\t\t\tdetail:'/goods/GetGoodsComment?gid='+gid+'&page=3&num=2'
\t\t}
\t\t// 获取详情评论数据
\t\tfunction getListDataFromNet(pageNum, pageSize, successCallback, errorCallback) {
\t\t\t\$.ajax({
\t\t\t\turl: Api.base + Api.detail,
\t\t\t\tdata: {
\t\t\t\t\tperiod: 1,
\t\t\t\t\tpage: pageNum,
\t\t\t\t\tnum: pageSize
\t\t\t\t},
\t\t\t\ttype: 'post',
\t\t\t\tdataType: 'json',
\t\t\t\tsuccess: function (res) {
\t\t\t\t\tsuccessCallback && successCallback(res.data)
\t\t\t\t},
\t\t\t\terror: function (xhr, state, err) {
\t\t\t\t\tif (errorCallback) {
\t\t\t\t\t\terrorCallback(err)
\t\t\t\t\t} else {
\t\t\t\t\t\tconsole.log('获取数据失败', err)
\t\t\t\t\t}
\t\t\t\t}
\t\t\t})
\t\t}
\t\tvar xiangqing = new Vue({
\t\t\tel: '#xiangqing',
\t\t\tdelimiters: ['[', ']'],
\t\t\tdata: {
\t\t\t\tmescroll: null,
\t\t\t\tcommentList: []
\t\t\t},
\t\t\tmounted: function () {
\t\t\t\tvar self = this;
\t\t\t\tself.mescroll = new MeScroll('xiangqing', {
\t\t\t\t\tup: {
\t\t\t\t\t\tloadFull:{
\t\t\t\t\t\t\tuse:true,
\t\t\t\t\t\t\tdelay:500
\t\t\t\t\t\t},
\t\t\t\t\t\tpage: {
\t\t\t\t\t\t\tsize: 5
\t\t\t\t\t\t},
\t\t\t\t\t\tcallback: self.upCallback
\t\t\t\t\t},
\t\t\t\t\tdown: {
\t\t\t\t\t\tisLock: true
\t\t\t\t\t}
\t\t\t\t})
\t\t\t},
\t\t\tmethods: {
\t\t\t\tupCallback: function (page) {
\t\t\t\t\tvar self = this;
\t\t\t\t\t// console.log('page.num', page.num, '\\npage.size', page.size);
\t\t\t\t\tgetListDataFromNet(page.num, page.size, function (data) {
\t\t\t\t\t\t// console.log('获取数据成功', data)
\t\t\t\t\t\tif (page.num == 1) self.commentList = [];

\t\t\t\t\t\tself.commentList = self.commentList.concat(data);

\t\t\t\t\t\tself.mescroll.endSuccess(data.length);
\t\t\t\t\t\t
\t\t\t\t\t\t//点击图片放大
\t\t\t\t\t\t/*\$(\".uppic img\").click(function () {
\t\t\t\t\t\t\tvar imgsrc = \$(this).attr(\"src\")
\t\t\t\t\t\t\topenPhotoSwipe(imgsrc);
\t\t\t\t\t\t})*/
\t\t\t\t\t\t
\t\t\t\t\t}, function (err) {
\t\t\t\t\t\tconsole.log('获取详情评论失败,', err)
\t\t\t\t\t})
\t\t\t\t},
\t\t\t\taddAtLast(index){
\t\t\t\t\tvar imgsrc=this.commentList[index].img_url;
\t\t            //var imgsrc=imgsrc[0];
\t\t            openPhotoSwipe(imgsrc);
\t\t\t\t},
\t\t\t}
\t\t\t
\t\t})
\t\t// 下拉加载效果
//\t\tvar pullUpLoad = new Vue({
//\t\t\tel: 'coments-list',
//\t\t\tdata: {
//\t\t\t\tcomments: []
//\t\t\t}
//\t\t})
\t\t//轮播图
\t\t\$(document).ready(function () {
\t\t\t\$(\"#xiangqing\").show();
\t\t});
\t\t//从后台读取数据
\t\t\$.ajax({
\t\t\ttype: \"post\",
\t\t\turl: \"https://paile.yanfaguanjia.cn/goods/goodsDetail?gid=\"+gid+\"&lat=\"+ lat + \"&lnt=\" + lon,
\t\t\tdataType: \"json\",
\t\t\tsuccess: function (data) {
\t\t\t\t//console.log(data)
\t\t\t\tvar imgurl = data.data.img[0].imgurl;
\t\t\t\tvar goods_name = data.data.info.goods_name;
\t\t\t\tgname = goods_name;
\t\t\t\tvar goods_price = data.data.info.goods_price;
\t\t\t\tvar sale_price = data.data.info.sale_price;
\t\t\t\tgsale_price = sale_price;
\t\t\t\tvar store_address = data.data.store.store_address;
\t\t\t\tvar store_name = data.data.store.store_name;
\t\t\t\tvar store_tel = data.data.store.store_tel;
\t\t\t\tvar distance = data.data.store.distance;
\t\t\t\tvar introduce = data.data.affiliate.introduce;
\t\t\t\tvar detail = data.data.affiliate.detail;
\t\t\t\tvar yxq = data.data.affiliate.xuzhi.yxq;
\t\t\t\tvar sysj = data.data.affiliate.xuzhi.sysj;
\t\t\t\tvar yyxx = data.data.affiliate.xuzhi.yyxx;
\t\t\t\tvar syrs = data.data.affiliate.xuzhi.syrs;
\t\t\t\tvar wxts = data.data.affiliate.xuzhi.wxts;
\t\t\t\t//如果不返回有效期，则有效期就不显示
\t\t\t\tif(yxq==null || yxq=='' || yxq== undefined){
\t\t\t\t\t\$(\"#xuzhi p\").eq(0).hide();
\t\t\t\t\t\$(\"#xuzhi p\").eq(1).hide();
\t\t\t\t}
\t\t\t\tfor (var i = 0; i < data.data.img.length; i++) {
\t\t\t\t\tvar html1 = '<div class=\"swiper-slide\"><img class=\"banner\" src=\"'
\t\t\t\t\tvar html2 = data.data.img[i].imgurl
\t\t\t\t\tvar html3 = '\" /></div>'
\t\t\t\t\tvar html4 = html1 + html2 + html3
\t\t\t\t\t\$(\".swiper-wrapper\").append(html4)
\t\t\t\t}
\t\t\t\tvar mySwiper = new Swiper('.swiper-container', {
\t\t\t\t\tdirection: 'horizontal',
\t\t\t\t\tautoplay: 3000, //可选选项，自动滑动
\t\t\t\t\tpagination: '.swiper-pagination',
\t\t\t\t\tloop: true,
\t\t\t\t});
\t\t\t\t//console.log(data.data.img.length)
\t\t\t\tvar app = new Vue({
\t\t\t\t\tel: '#vue',
\t\t\t\t\tdelimiters: ['[', ']'],
\t\t\t\t\tdata: {
\t\t\t\t\t\timgurl: imgurl,
\t\t\t\t\t\tgoods_name: goods_name,
\t\t\t\t\t\tgoods_price: goods_price,
\t\t\t\t\t\tsale_price: sale_price,
\t\t\t\t\t\tstore_address: store_address,
\t\t\t\t\t\tstore_name: store_name,
\t\t\t\t\t\tstore_tel: store_tel,
\t\t\t\t\t\tdistance: distance,
\t\t\t\t\t},
\t\t\t\t})
\t\t\t\tvar app = new Vue({
\t\t\t\t\tel: '#Details',
\t\t\t\t\tdelimiters: ['[', ']'],
\t\t\t\t\tdata: {
\t\t\t\t\t\tdetail: detail
\t\t\t\t\t},
\t\t\t\t})
\t\t\t\tvar app = new Vue({
\t\t\t\t\tel: '#xuzhi',
\t\t\t\t\tdelimiters: ['[', ']'],
\t\t\t\t\tdata: {
\t\t\t\t\t\tyxq: yxq,
\t\t\t\t\t\tsysj: sysj,
\t\t\t\t\t\tyyxx: yyxx,
\t\t\t\t\t\tsyrs: syrs,
\t\t\t\t\t\twxts: wxts,
\t\t\t\t\t},
\t\t\t\t})
\t\t\t\tvar app = new Vue({
\t\t\t\t\tel: '#shanghu',
\t\t\t\t\tdelimiters: ['[', ']'],
\t\t\t\t\tdata: {
\t\t\t\t\t\tintroduce: introduce
\t\t\t\t\t},
\t\t\t\t})
\t\t\t}
\t\t});

\t\t//tab栏切换
\t\t\$(\".tab p\").click(function () {
\t\t\tvar index = \$(this).index();
\t\t\t\$(this).addClass(\"on\").siblings().removeClass(\"on\");
\t\t\tif (index == 0) {
\t\t\t\t\$(\"#xiangqing\").show();
\t\t\t\t\$(\"#xuzhi\").hide();
\t\t\t\t\$(\"#shanghu\").hide();
\t\t\t} else if (index == 1) {
\t\t\t\t\$(\"#xuzhi\").show();
\t\t\t\t\$(\"#xiangqing\").hide();
\t\t\t\t\$(\"#shanghu\").hide();
\t\t\t\t
\t\t\t} else if (index == 2) {
\t\t\t\t\$(\"#shanghu\").show();
\t\t\t\t\$(\"#xuzhi\").hide();
\t\t\t\t\$(\"#xiangqing\").hide();
\t\t\t} else {

\t\t\t}
\t\t});


\t\t//点赞效果
\t\t\$(\".praise_off\").click(function () {
\t\t\tvar amounts = parseInt(\$(this).siblings(\".amounts\").text());
\t\t\tif (\$(this).attr(\"src\").match(\"praise_off.png\")) {
\t\t\t\t\$(this).attr(\"src\", \"img/praise_on.png\");
\t\t\t\t\$(this).siblings(\".amounts\").text(amounts + 1);
\t\t\t} else {
\t\t\t\t\$(this).attr(\"src\", \"img/praise_off.png\")
\t\t\t\t\$(this).siblings(\".amounts\").text(amounts - 1)
\t\t\t}
\t\t})
\t\t//点击收藏效果
\t\t\$(\".collection\").click(function () {
\t\t\tif (\$(this).attr(\"src\").match(\"collection-gray.png\")) {
\t\t\t\t\$(this).attr(\"src\", \"img/collection.png\");
\t\t\t\t\$.ajax({
\t\t\t\t\ttype: \"post\",
\t\t\t\t\turl: \"https://paile.yanfaguanjia.cn/collect/SetCollect?type=1&cid=3\",
\t\t\t\t\tdataType: \"json\",
\t\t\t\t\tsuccess: function (data) {
\t\t\t\t\t\tconsole.log(data)
\t\t\t\t\t}
\t\t\t\t});
\t\t\t} else {
\t\t\t\t\$(this).attr(\"src\", \"/static/product/img/collection-gray.png\")
\t\t\t}
\t\t})
\t\t//立即购买效果1
\t\t/*window.onscroll = function(){ 
\t\t    if(document.body.scrollTop==0 && document.documentElement.scrollTop==0){
            \t\$('#pay').show();
            }else{
\t\t    \t\$('#pay').hide();
\t\t    }
\t\t}*/
\t\t//立即购买效果2
\t\tscroll();

\t\tfunction scroll() {
\t\t\tvar beforeScrollTop = document.body.scrollTop;
\t\t\twindow.addEventListener(\"scroll\", function () {
\t\t\t\tvar afterScrollTop = document.body.scrollTop,
\t\t\t\t\tdelta = afterScrollTop - beforeScrollTop;
\t\t\t\tif (delta > 0) {
\t\t\t\t\t\$('#pay').hide();
\t\t\t\t} else {
\t\t\t\t\t\$('#pay').show();
\t\t\t\t}
\t\t\t\tbeforeScrollTop = afterScrollTop;
\t\t\t}, false);
\t\t}
\t\t//吸顶效果
//\t\twindow.onload = function () {
//\t\t\tvar oDiv = document.getElementById('tab');
//\t\t\tvar divT = oDiv.offsetTop;
//\t\t\twindow.onscroll = function () {
//\t\t\t\tvar scrollT = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
//\t\t\t\tif (scrollT > divT) {
//\t\t\t\t\t\$(\"#tab\").addClass(\"fixed\");
//\t\t\t\t\t\$(\".tab p\").css(\"margin-top\", \"0rem\")
//\t\t\t\t} else {
//\t\t\t\t\t\$(\"#tab\").removeClass(\"fixed\");
//\t\t\t\t\t\$(\".tab p\").css(\"margin-top\", \"1.2rem\")
//\t\t\t\t}
//\t\t\t}
//\t\t}
\t\twindow.onload = function () {
\t\t\tvar oDiv = document.getElementById('tab');
\t\t\tvar divT = oDiv.offsetTop+170;
\t\t\t//console.log(divT)
\t\t\twindow.onscroll = function () {
\t\t\t\tvar scrollT = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
\t\t\t\t//console.log(divT)
\t\t\t\t//console.log(scrollT)
\t\t\t\tif (scrollT > divT) {
\t\t\t\t\t\$(\"#tab\").addClass(\"fixed\");
\t\t\t\t\t\$(\".tab p\").css(\"margin-top\", \"0rem\");
\t\t\t\t\t\$(\".tab p\").click(function () {
\t\t\t\t\t\tvar index = \$(this).index();
\t\t\t\t\t\t\$(this).addClass(\"on\").siblings().removeClass(\"on\");
\t\t\t\t\t\tif (index == 0) {
\t\t\t\t\t\t\t\$(\"#xiangqing\").show();
\t\t\t\t\t\t\t\$(\"#xuzhi\").hide();
\t\t\t\t\t\t\t\$(\"#shanghu\").hide();
\t\t\t\t\t\t} else if (index == 1) {
\t\t\t\t\t\t\t\$(\"#xuzhi\").show();
\t\t\t\t\t\t\t\$(\"#xiangqing\").hide();
\t\t\t\t\t\t\t\$(\"#shanghu\").hide();
\t\t\t\t\t\t} else if (index == 2) {
\t\t\t\t\t\t\t\$(\"#shanghu\").show();
\t\t\t\t\t\t\t\$(\"#xuzhi\").hide();
\t\t\t\t\t\t\t\$(\"#xiangqing\").hide();
\t\t\t\t\t\t} else {
\t\t\t
\t\t\t\t\t\t}
\t\t\t\t\t});

\t\t\t\t} else {
\t\t\t\t\t\$(\"#tab\").removeClass(\"fixed\");
\t\t\t\t\t\$(\".tab p\").css(\"margin-top\", \"1.2rem\")
\t\t\t\t}
\t\t\t}
\t\t}
\t})()
</script>
<script>
\tvar openPhotoSwipe = function (imgsrc) {
\t\tvar pswpElement = document.querySelectorAll('.pswp')[0];
\t\tvar items = [ ];
\t\tfor(var i=0;i<imgsrc.length;i++){
\t\t\titems.push({src: imgsrc[i],w: 1024,h: 750}); 
\t\t}
\t\tvar options = {
\t\t\thistory: false,
\t\t\tfocus: false,
\t\t\ttapToClose: true, //默认关闭
\t\t\tshowAnimationDuration: 0,
\t\t\thideAnimationDuration: 0
\t\t};
\t\tvar gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options);
\t\tgallery.init();
\t};
\t
\t\$('#pay').on('click',function(){
\t\talert(gid+',goodName:'+gname+',sale_price:'+gsale_price)
\t\tJockey.send(\"pailexiong\", {key: 'buy', data: {'gid':gid.toString(),'goodName':gname,'sale_price':gsale_price}});
\t})
\tfunction tel_store(obj){
\t\talert(\$(obj).text().replace(/(^\\s*)|(\\s*\$)/g, \"\") + '123')
\t\tJockey.send(\"pailexiong\", {key: 'phone', data: \$(obj).text().replace(/(^\\s*)|(\\s*\$)/g, \"\")});
\t}\t
\t
\t//点赞
\tfunction praise_click(obj){
\t\tvar attrid = \$(obj).attr('attrid');
\t\t\$.ajax({
\t\t\turl:'/order/SetOrderCommonPra',
\t\t\ttype:'post',
\t\t\tdata:{praiseId:attrid},
\t\t\tdataType: \"json\",
\t\t\tsuccess:function( data ){
\t\t\t\tif( data.code == 0 ){
\t\t\t\t\tif( data.data.show == 1 ){
\t\t\t\t\t\t//点中
\t\t\t\t\t\t\$(obj).attr(\"src\",'/static/product/img/praise_on.png').siblings('p').text( parseInt( \$(obj).siblings('p').text() ) + 1  );
\t\t\t\t\t}else{
\t\t\t\t\t\t//取消
\t\t\t\t\t\t\$(obj).attr(\"src\",'/static/product/img/praise_off.png').siblings('p').text( parseInt( \$(obj).siblings('p').text() - 1 ) );
\t\t\t\t\t}
\t\t\t\t}else if( data.code == 1 ){
\t\t\t\t\talert('失败');
\t\t\t\t}else if( data.code == 10001 ){
\t\t\t\t\talert('未登录');
\t\t\t\t}
\t\t\t}
\t\t})
\t}
</script>

</html>
";
    }

    public function getTemplateName()
    {
        return "html/product/productDel.tpl.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  252 => 226,  248 => 225,  244 => 224,  19 => 1,);
    }

    public function getSourceContext()
    {
        return new Twig_Source("
<!DOCTYPE html>
<html lang=\"zh-CN\">

<head>
\t<meta charset=\"utf-8\">
\t<meta name=\"viewport\" content=\"initial-scale=1.0, maximum-scale=1.0, user-scalable=no\" />
\t<title>派乐熊详情页111</title>
\t<link rel=\"stylesheet\" href=\"/static/product/css/ui_box.css\" />
\t<link rel=\"stylesheet\" href=\"/static/product/css/plx_main.css\" />
\t<link rel=\"stylesheet\" href=\"/static/product/css/swiper-3.4.2.min.css\" />
\t<link rel=\"stylesheet\" href=\"/static/product/css/photoswipe.css\" />
\t<link rel=\"stylesheet\" href=\"/static/product/css/default-skin.css\" />
\t<link rel=\"stylesheet\" href=\"/static/common/css/mescroll.min.css\">
</head>

<body>
\t<!--header-->
\t<!--<header id=\"header\" class=\"ub ub-ac ub-pc sc-bg1 border-b\">
\t\t<div class=\"arrow-left ub-img\"></div>
\t\t<p class=\"ulev1 text-color1 tx-c\">商品详情</p>
\t\t<img class=\"collection\" src=\"/static/product/img/collection-gray.png\" />
\t\t<img class=\"share\" src=\"/static/product/img/share.png\" />
\t</header>-->
\t<!--内容部分-->
\t<div id=\"content\">
\t\t<!--轮播图-->
\t\t<div class=\"swiper-container\">
\t\t\t<div class=\"swiper-wrapper\">
\t\t\t\t<!--<div class=\"swiper-slide\">
\t\t\t        \t<img class=\"banner\" src=\"\" />
\t\t\t        </div>
\t\t\t        <div class=\"swiper-slide\">
\t\t\t        \t<img class=\"banner\" src=\"\" />
\t\t\t        </div>-->
\t\t\t</div>
\t\t\t<div class=\"swiper-pagination\"></div>
\t\t</div>
\t\t<div id=\"vue\">
\t\t\t<div class=\"umar-a\">
\t\t\t\t<p class=\"details\">[goods_name]</p>
\t\t\t\t<!--商品详情-->
\t\t\t\t<p class=\"price\"><span>¥</span><span id=\"sale_price\">[sale_price]</span>
\t\t\t\t\t<del>¥</del>
\t\t\t\t\t<del id=\"goods_price\">[goods_price]</del>
\t\t\t\t</p>
\t\t\t\t
\t\t\t</div>
\t\t\t<div class=\"dividingline\"></div>
\t\t\t<p class=\"description\">仅售580元，价值5160元单人成人学游泳培训班12课时6节课包含门票，节假日通用！</p>
\t\t\t<div class=\"dividingline\"></div>
\t\t\t<div class=\"umar-a\">
\t\t\t\t<p class=\"storename\">[store_name]</p>
\t\t\t\t<div class=\"ub ub-ac address\">
\t\t\t\t\t<div>
\t\t\t\t\t\t<img class=\"circle\" src=\"/static/product/img/circle.png\" />
\t\t\t\t\t</div>
\t\t\t\t\t<p class=\"ub-f1\">[store_address]</p>
\t\t\t\t\t<span class=\"ub-f1\">[distance]</span>
\t\t\t\t</div>
\t\t\t\t<div class=\"ub ub-ac address\">
\t\t\t\t\t<div>
\t\t\t\t\t\t<img class=\"phone\" src=\"/static/product/img/phone.png\" />
\t\t\t\t\t</div>
\t\t\t\t\t<p onclick='tel_store(this)'>[store_tel]</>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"dividingline\"></div>
\t\t</div>

\t\t<div class=\"ub ub-pc ub-ac tab\" id=\"tab\">
\t\t\t<p class=\"on\">活动详情</p>
\t\t\t<p>购买须知</p>
\t\t\t<p>商户介绍</p>
\t\t</div>
\t\t<!--活动详情-->
\t\t<div id=\"xiangqing\" class=\"mescroll\" style=\"display: none;\">
\t\t\t<div id=\"Details\" class=\"umar-a\">
\t\t\t\t<p>派乐熊儿童游泳体验馆致力于让孩子们，每天健康运动一小时，每周三次课，可多选参与，在学龄前，为孩子打下坚实的身体基础。全程专业教练指导陪护，为孩子提供安全的锻炼环境，男教练特有的教学方式，更加促进孩子的团结、坚韧品质。</p>
    \t\t\t<p>所有套系在拍摄条件允许下，均可拍摄指定外景1套（含在总套数内）。
底片除赠送精修张数以外另需购买，儿童照／新生儿照：50元精修，60元入册；亲子照／孕妇照：70元精修，80元入册。<p />
\t\t\t\t<p>所有套系可拍全家福及合照，共可免费入册5-10张（含在总精修张数内），大人服装造型自备，限5人入境。所有产品中的照片均选自精修。<p />
\t\t\t\t<p>至少提前一周以上预约，约满顺延，不接受未经预约直接到店拍照。<p />
\t\t\t\t<p>新生儿宝宝7-15天拍摄为佳，限拍30天内宝宝。<p />
\t\t\t\t<p>孕妇照怀孕7-8个月拍摄为佳。<p />
\t\t\t\t<p>拍摄不满意可当场提出免费重拍。<p />
\t\t\t\t<p>自购买之日起7天内未拍摄可无理由退款。<p />
\t\t\t\t<p>拍摄过程默认同步录制花絮，顾客可选择性购买花絮及剪辑成品。<p />
\t\t\t\t<p>六环内产品免费物流。（通州店除外）<p />
\t\t\t\t<p>取件需知：自选片后30甜取件，如需配送另加3天左右，节假日顺延；VIP需要定稿的，自定稿后30甜取件，如需配送另加3天左右，节假日顺延；取件后有问题的需在24小时内提出，超过24小时视为无问题，资料将被系统自动清除，无法提供查询服务。<p />
\t\t\t\t<p>特别提示：顾客在接受整个服务过程中，出现任何问题均可拨打客服电话123456789进行投诉。</p>
\t\t\t</div>
\t\t\t<div class=\"bg-blue\"></div>
\t\t\t<div class=\"ub ub-ac comment\">
\t\t\t\t<p>评论</p>
\t\t\t\t<p>98条评论</p>
\t\t\t</div>
\t\t\t<div class=\"dividingline\"></div>
\t\t\t<div class=\"comments-list\" id=\"comments-list\">

\t\t\t</div>
\t\t\t<div class=\"comment-wrap\">
\t\t\t\t<div class=\"ub umar-t\" v-for=\"(item,index) of commentList\">
\t\t\t\t\t<img class=\"portrait\" :src=\"item.avatar?item.avatar:'/'\" />
\t\t\t\t\t<div class=\"ub-f1 ub ub-ver discuss\">
\t\t\t\t\t\t<p>[item.user_name]</p>
\t\t\t\t\t\t<p>[item.utime]</p>
\t\t\t\t\t\t<p>[item.content]</p>
\t\t\t\t\t\t<div class=\"ub uppic\" v-for=\"url of item.img_url\">
\t\t\t\t\t\t\t<img :src=\"url\" @click='addAtLast(index)'/>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"ub ub-ac praise\">
\t\t\t\t\t\t\t<!-- <img src=\"img/preview.png\" />
\t\t\t\t\t\t\t<p>12387</p> -->
\t\t\t\t\t\t\t<img class=\"praise_off\" :src=\"[item.iszan]\" v-bind:attrid='item.id' onclick='praise_click(this)'/>
\t\t\t\t\t\t\t<p class=\"amounts\">[item.zan]</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- <img class=\"portrait\" src=\"img/portrait.png\" />
\t\t\t\t\t<div class=\"ub-f1 ub ub-ver discuss\">
\t\t\t\t\t\t<p>安静的生活</p>
\t\t\t\t\t\t<p>04.09.2017 23:02</p>
\t\t\t\t\t\t<p>带着宝宝一起去体验的，环境非常好，服务到位。</p>
\t\t\t\t\t\t<div class=\"ub uppic\">
\t\t\t\t\t\t\t<img src=\"img/upload_pic.png\" />
\t\t\t\t\t\t\t<img src=\"img/upload_pic.png\" />
\t\t\t\t\t\t\t<img src=\"img/upload_pic.png\" />
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"ub ub-ac praise\"> -->
\t\t\t\t\t<!-- <img src=\"img/preview.png\" />
\t\t\t\t\t\t\t<p>12387</p> -->
\t\t\t\t\t<!-- <img class=\"praise_off\" src=\"img/praise_off.png\" />
\t\t\t\t\t\t\t<p class=\"amounts\">12</p>
\t\t\t\t\t\t</div> -->
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t
\t<!--购买须知-->
\t<div id=\"xuzhi\" style=\"display: none;\">
\t\t<p>有效期</p>
\t\t<p>[yxq]</p>
\t\t<p>使用时间</p>
\t\t<p>[sysj]</p>
\t\t<p>预约信息</p>
\t\t<p>[yyxx]</p>
\t\t<p>适用人数</p>
\t\t<p>[syrs]</p>
\t\t<p>温馨提示</p>
\t\t<p>[wxts]</p>
\t\t<div style=\"height: 28.2rem;\"></div>
\t</div>
\t<!--商户介绍-->
\t<div id=\"shanghu\" style=\"display: none;\">
\t\t<div class=\"ub ub-fh\">
\t\t\t<img class=\"logo\" src=\"/static/product/img/logo.png\" />
\t\t\t<div class=\"ub-f1 ub ub-ver tiyan\">
\t\t\t\t<p>[introduce]</p>
\t\t\t\t<p>以游泳比赛、游泳水中运动、游泳培训的方式来提高社会各界人士对体育的热爱。</p>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"directions\">
\t\t\t<p>派乐熊儿童游泳体验馆.响应国家号召、更具国家体委贯彻全民健身计划纲要，实施全民健身计划、引导广大群众积极的参与、服务优先，教学优先，诚信优先，是我中心的服务宗旨。经过多年的努力得到了社会各界的认可。丰富的教育资源、尽责的教练，为广大体育爱好者提供各种项目技术动作分析和图解等服务、通过本网站为大多数体育运动爱好者提供分钟项目相关的知识和理论，为运动爱好者了解运动常识，正确运用各种理论去指导自己运动提供理论依据，为学员之间学习经验的交流提供很好的空间和平台。</p>
\t\t\t<p>我们的宗旨：用运动调节身心，让健康充满人间。<br /> 我们的理念：满足客户的一切运动需求
\t\t\t\t<br /> 我们的口号：尽情享受运动的无限乐趣／正确理解运动的美妙时刻／真正成为运动的英雄楷模／完全满意运动的健身效果
\t\t\t</p>
\t\t</div>
\t\t<div class=\"picture\">
\t\t\t<img src=\"/static/product/img/picture.png\" />
\t\t\t<img src=\"/static/product/img/picture.png\" />
\t\t\t<img src=\"/static/product/img/picture.png\" />
\t\t</div>
\t</div>
\t</div>
\t<!--点击图片预览放大效果-->
\t<div class=\"pswp\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">
\t\t<div class=\"pswp__bg\"></div>
\t\t<div class=\"pswp__scroll-wrap\">
\t\t\t<div class=\"pswp__container\">
\t\t\t\t<div class=\"pswp__item\"></div>
\t\t\t\t<div class=\"pswp__item\"></div>
\t\t\t\t<div class=\"pswp__item\"></div>
\t\t\t</div>
\t\t\t<div class=\"pswp__ui pswp__ui--hidden\">
\t\t\t\t<div class=\"pswp__top-bar\">
\t\t\t\t\t<div class=\"pswp__counter\"></div>
\t\t\t\t\t<button class=\"pswp__button pswp__button--close\" title=\"Close (Esc)\"></button>
\t\t\t\t\t<button class=\"pswp__button pswp__button--share\" title=\"Share\"></button>
\t\t\t\t\t<button class=\"pswp__button pswp__button--fs\" title=\"Toggle fullscreen\"></button>
\t\t\t\t\t<button class=\"pswp__button pswp__button--zoom\" title=\"Zoom in/out\"></button>
\t\t\t\t\t<div class=\"pswp__preloader\">
\t\t\t\t\t\t<div class=\"pswp__preloader__icn\">
\t\t\t\t\t\t\t<div class=\"pswp__preloader__cut\">
\t\t\t\t\t\t\t\t<div class=\"pswp__preloader__donut\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"pswp__share-modal pswp__share-modal--hidden pswp__single-tap\">
\t\t\t\t\t<div class=\"pswp__share-tooltip\"></div>
\t\t\t\t</div>
\t\t\t\t<button class=\"pswp__button pswp__button--arrow--left\" title=\"Previous (arrow left)\">
\t\t            </button>
\t\t\t\t<button class=\"pswp__button pswp__button--arrow--right\" title=\"Next (arrow right)\">
\t\t            </button>
\t\t\t\t<div class=\"pswp__caption\">
\t\t\t\t\t<div class=\"pswp__caption__center\"></div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<footer id=\"pay\">
\t\t<p>立即购买</p>
\t</footer>
</body>
<script type=\"text/javascript\" src=\"/static/common/js/jquery-1.11.2.min.js\"></script>
<script type=\"text/javascript\" src=\"/static/product/js/swiper-3.4.2.min.js\"></script>
<script type=\"text/javascript\" src=\"/static/product/js/photoswipe-ui-default.min.js\"></script>
<script type=\"text/javascript\" src=\"/static/product/js/photoswipe.min.js\"></script>
<script src=\"/static/common/js/mescroll.min.js\"></script>
<script type=\"text/javascript\" src=\"/static/common/js/vue.js\"></script>
<script type=\"text/javascript\" src=\"/static/common/js/jockey.min.js\"></script>
<script>
\tvar gid = {{gid}};
\tvar lat = {{lat}};
\tvar lon = {{lon}};
\tvar gname = '';
\tvar gsale_price = ''; 
\t(function () {
\t\t// 接口
\t\tvar Api = {
\t\t\tbase: 'https://paile.yanfaguanjia.cn',
\t\t\triji: '/diary/GetLeftComment',
\t\t\trijiList: '/diary/GetRecomDiary',
\t\t\tdetail:'/goods/GetGoodsComment?gid='+gid+'&page=3&num=2'
\t\t}
\t\t// 获取详情评论数据
\t\tfunction getListDataFromNet(pageNum, pageSize, successCallback, errorCallback) {
\t\t\t\$.ajax({
\t\t\t\turl: Api.base + Api.detail,
\t\t\t\tdata: {
\t\t\t\t\tperiod: 1,
\t\t\t\t\tpage: pageNum,
\t\t\t\t\tnum: pageSize
\t\t\t\t},
\t\t\t\ttype: 'post',
\t\t\t\tdataType: 'json',
\t\t\t\tsuccess: function (res) {
\t\t\t\t\tsuccessCallback && successCallback(res.data)
\t\t\t\t},
\t\t\t\terror: function (xhr, state, err) {
\t\t\t\t\tif (errorCallback) {
\t\t\t\t\t\terrorCallback(err)
\t\t\t\t\t} else {
\t\t\t\t\t\tconsole.log('获取数据失败', err)
\t\t\t\t\t}
\t\t\t\t}
\t\t\t})
\t\t}
\t\tvar xiangqing = new Vue({
\t\t\tel: '#xiangqing',
\t\t\tdelimiters: ['[', ']'],
\t\t\tdata: {
\t\t\t\tmescroll: null,
\t\t\t\tcommentList: []
\t\t\t},
\t\t\tmounted: function () {
\t\t\t\tvar self = this;
\t\t\t\tself.mescroll = new MeScroll('xiangqing', {
\t\t\t\t\tup: {
\t\t\t\t\t\tloadFull:{
\t\t\t\t\t\t\tuse:true,
\t\t\t\t\t\t\tdelay:500
\t\t\t\t\t\t},
\t\t\t\t\t\tpage: {
\t\t\t\t\t\t\tsize: 5
\t\t\t\t\t\t},
\t\t\t\t\t\tcallback: self.upCallback
\t\t\t\t\t},
\t\t\t\t\tdown: {
\t\t\t\t\t\tisLock: true
\t\t\t\t\t}
\t\t\t\t})
\t\t\t},
\t\t\tmethods: {
\t\t\t\tupCallback: function (page) {
\t\t\t\t\tvar self = this;
\t\t\t\t\t// console.log('page.num', page.num, '\\npage.size', page.size);
\t\t\t\t\tgetListDataFromNet(page.num, page.size, function (data) {
\t\t\t\t\t\t// console.log('获取数据成功', data)
\t\t\t\t\t\tif (page.num == 1) self.commentList = [];

\t\t\t\t\t\tself.commentList = self.commentList.concat(data);

\t\t\t\t\t\tself.mescroll.endSuccess(data.length);
\t\t\t\t\t\t
\t\t\t\t\t\t//点击图片放大
\t\t\t\t\t\t/*\$(\".uppic img\").click(function () {
\t\t\t\t\t\t\tvar imgsrc = \$(this).attr(\"src\")
\t\t\t\t\t\t\topenPhotoSwipe(imgsrc);
\t\t\t\t\t\t})*/
\t\t\t\t\t\t
\t\t\t\t\t}, function (err) {
\t\t\t\t\t\tconsole.log('获取详情评论失败,', err)
\t\t\t\t\t})
\t\t\t\t},
\t\t\t\taddAtLast(index){
\t\t\t\t\tvar imgsrc=this.commentList[index].img_url;
\t\t            //var imgsrc=imgsrc[0];
\t\t            openPhotoSwipe(imgsrc);
\t\t\t\t},
\t\t\t}
\t\t\t
\t\t})
\t\t// 下拉加载效果
//\t\tvar pullUpLoad = new Vue({
//\t\t\tel: 'coments-list',
//\t\t\tdata: {
//\t\t\t\tcomments: []
//\t\t\t}
//\t\t})
\t\t//轮播图
\t\t\$(document).ready(function () {
\t\t\t\$(\"#xiangqing\").show();
\t\t});
\t\t//从后台读取数据
\t\t\$.ajax({
\t\t\ttype: \"post\",
\t\t\turl: \"https://paile.yanfaguanjia.cn/goods/goodsDetail?gid=\"+gid+\"&lat=\"+ lat + \"&lnt=\" + lon,
\t\t\tdataType: \"json\",
\t\t\tsuccess: function (data) {
\t\t\t\t//console.log(data)
\t\t\t\tvar imgurl = data.data.img[0].imgurl;
\t\t\t\tvar goods_name = data.data.info.goods_name;
\t\t\t\tgname = goods_name;
\t\t\t\tvar goods_price = data.data.info.goods_price;
\t\t\t\tvar sale_price = data.data.info.sale_price;
\t\t\t\tgsale_price = sale_price;
\t\t\t\tvar store_address = data.data.store.store_address;
\t\t\t\tvar store_name = data.data.store.store_name;
\t\t\t\tvar store_tel = data.data.store.store_tel;
\t\t\t\tvar distance = data.data.store.distance;
\t\t\t\tvar introduce = data.data.affiliate.introduce;
\t\t\t\tvar detail = data.data.affiliate.detail;
\t\t\t\tvar yxq = data.data.affiliate.xuzhi.yxq;
\t\t\t\tvar sysj = data.data.affiliate.xuzhi.sysj;
\t\t\t\tvar yyxx = data.data.affiliate.xuzhi.yyxx;
\t\t\t\tvar syrs = data.data.affiliate.xuzhi.syrs;
\t\t\t\tvar wxts = data.data.affiliate.xuzhi.wxts;
\t\t\t\t//如果不返回有效期，则有效期就不显示
\t\t\t\tif(yxq==null || yxq=='' || yxq== undefined){
\t\t\t\t\t\$(\"#xuzhi p\").eq(0).hide();
\t\t\t\t\t\$(\"#xuzhi p\").eq(1).hide();
\t\t\t\t}
\t\t\t\tfor (var i = 0; i < data.data.img.length; i++) {
\t\t\t\t\tvar html1 = '<div class=\"swiper-slide\"><img class=\"banner\" src=\"'
\t\t\t\t\tvar html2 = data.data.img[i].imgurl
\t\t\t\t\tvar html3 = '\" /></div>'
\t\t\t\t\tvar html4 = html1 + html2 + html3
\t\t\t\t\t\$(\".swiper-wrapper\").append(html4)
\t\t\t\t}
\t\t\t\tvar mySwiper = new Swiper('.swiper-container', {
\t\t\t\t\tdirection: 'horizontal',
\t\t\t\t\tautoplay: 3000, //可选选项，自动滑动
\t\t\t\t\tpagination: '.swiper-pagination',
\t\t\t\t\tloop: true,
\t\t\t\t});
\t\t\t\t//console.log(data.data.img.length)
\t\t\t\tvar app = new Vue({
\t\t\t\t\tel: '#vue',
\t\t\t\t\tdelimiters: ['[', ']'],
\t\t\t\t\tdata: {
\t\t\t\t\t\timgurl: imgurl,
\t\t\t\t\t\tgoods_name: goods_name,
\t\t\t\t\t\tgoods_price: goods_price,
\t\t\t\t\t\tsale_price: sale_price,
\t\t\t\t\t\tstore_address: store_address,
\t\t\t\t\t\tstore_name: store_name,
\t\t\t\t\t\tstore_tel: store_tel,
\t\t\t\t\t\tdistance: distance,
\t\t\t\t\t},
\t\t\t\t})
\t\t\t\tvar app = new Vue({
\t\t\t\t\tel: '#Details',
\t\t\t\t\tdelimiters: ['[', ']'],
\t\t\t\t\tdata: {
\t\t\t\t\t\tdetail: detail
\t\t\t\t\t},
\t\t\t\t})
\t\t\t\tvar app = new Vue({
\t\t\t\t\tel: '#xuzhi',
\t\t\t\t\tdelimiters: ['[', ']'],
\t\t\t\t\tdata: {
\t\t\t\t\t\tyxq: yxq,
\t\t\t\t\t\tsysj: sysj,
\t\t\t\t\t\tyyxx: yyxx,
\t\t\t\t\t\tsyrs: syrs,
\t\t\t\t\t\twxts: wxts,
\t\t\t\t\t},
\t\t\t\t})
\t\t\t\tvar app = new Vue({
\t\t\t\t\tel: '#shanghu',
\t\t\t\t\tdelimiters: ['[', ']'],
\t\t\t\t\tdata: {
\t\t\t\t\t\tintroduce: introduce
\t\t\t\t\t},
\t\t\t\t})
\t\t\t}
\t\t});

\t\t//tab栏切换
\t\t\$(\".tab p\").click(function () {
\t\t\tvar index = \$(this).index();
\t\t\t\$(this).addClass(\"on\").siblings().removeClass(\"on\");
\t\t\tif (index == 0) {
\t\t\t\t\$(\"#xiangqing\").show();
\t\t\t\t\$(\"#xuzhi\").hide();
\t\t\t\t\$(\"#shanghu\").hide();
\t\t\t} else if (index == 1) {
\t\t\t\t\$(\"#xuzhi\").show();
\t\t\t\t\$(\"#xiangqing\").hide();
\t\t\t\t\$(\"#shanghu\").hide();
\t\t\t\t
\t\t\t} else if (index == 2) {
\t\t\t\t\$(\"#shanghu\").show();
\t\t\t\t\$(\"#xuzhi\").hide();
\t\t\t\t\$(\"#xiangqing\").hide();
\t\t\t} else {

\t\t\t}
\t\t});


\t\t//点赞效果
\t\t\$(\".praise_off\").click(function () {
\t\t\tvar amounts = parseInt(\$(this).siblings(\".amounts\").text());
\t\t\tif (\$(this).attr(\"src\").match(\"praise_off.png\")) {
\t\t\t\t\$(this).attr(\"src\", \"img/praise_on.png\");
\t\t\t\t\$(this).siblings(\".amounts\").text(amounts + 1);
\t\t\t} else {
\t\t\t\t\$(this).attr(\"src\", \"img/praise_off.png\")
\t\t\t\t\$(this).siblings(\".amounts\").text(amounts - 1)
\t\t\t}
\t\t})
\t\t//点击收藏效果
\t\t\$(\".collection\").click(function () {
\t\t\tif (\$(this).attr(\"src\").match(\"collection-gray.png\")) {
\t\t\t\t\$(this).attr(\"src\", \"img/collection.png\");
\t\t\t\t\$.ajax({
\t\t\t\t\ttype: \"post\",
\t\t\t\t\turl: \"https://paile.yanfaguanjia.cn/collect/SetCollect?type=1&cid=3\",
\t\t\t\t\tdataType: \"json\",
\t\t\t\t\tsuccess: function (data) {
\t\t\t\t\t\tconsole.log(data)
\t\t\t\t\t}
\t\t\t\t});
\t\t\t} else {
\t\t\t\t\$(this).attr(\"src\", \"/static/product/img/collection-gray.png\")
\t\t\t}
\t\t})
\t\t//立即购买效果1
\t\t/*window.onscroll = function(){ 
\t\t    if(document.body.scrollTop==0 && document.documentElement.scrollTop==0){
            \t\$('#pay').show();
            }else{
\t\t    \t\$('#pay').hide();
\t\t    }
\t\t}*/
\t\t//立即购买效果2
\t\tscroll();

\t\tfunction scroll() {
\t\t\tvar beforeScrollTop = document.body.scrollTop;
\t\t\twindow.addEventListener(\"scroll\", function () {
\t\t\t\tvar afterScrollTop = document.body.scrollTop,
\t\t\t\t\tdelta = afterScrollTop - beforeScrollTop;
\t\t\t\tif (delta > 0) {
\t\t\t\t\t\$('#pay').hide();
\t\t\t\t} else {
\t\t\t\t\t\$('#pay').show();
\t\t\t\t}
\t\t\t\tbeforeScrollTop = afterScrollTop;
\t\t\t}, false);
\t\t}
\t\t//吸顶效果
//\t\twindow.onload = function () {
//\t\t\tvar oDiv = document.getElementById('tab');
//\t\t\tvar divT = oDiv.offsetTop;
//\t\t\twindow.onscroll = function () {
//\t\t\t\tvar scrollT = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
//\t\t\t\tif (scrollT > divT) {
//\t\t\t\t\t\$(\"#tab\").addClass(\"fixed\");
//\t\t\t\t\t\$(\".tab p\").css(\"margin-top\", \"0rem\")
//\t\t\t\t} else {
//\t\t\t\t\t\$(\"#tab\").removeClass(\"fixed\");
//\t\t\t\t\t\$(\".tab p\").css(\"margin-top\", \"1.2rem\")
//\t\t\t\t}
//\t\t\t}
//\t\t}
\t\twindow.onload = function () {
\t\t\tvar oDiv = document.getElementById('tab');
\t\t\tvar divT = oDiv.offsetTop+170;
\t\t\t//console.log(divT)
\t\t\twindow.onscroll = function () {
\t\t\t\tvar scrollT = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
\t\t\t\t//console.log(divT)
\t\t\t\t//console.log(scrollT)
\t\t\t\tif (scrollT > divT) {
\t\t\t\t\t\$(\"#tab\").addClass(\"fixed\");
\t\t\t\t\t\$(\".tab p\").css(\"margin-top\", \"0rem\");
\t\t\t\t\t\$(\".tab p\").click(function () {
\t\t\t\t\t\tvar index = \$(this).index();
\t\t\t\t\t\t\$(this).addClass(\"on\").siblings().removeClass(\"on\");
\t\t\t\t\t\tif (index == 0) {
\t\t\t\t\t\t\t\$(\"#xiangqing\").show();
\t\t\t\t\t\t\t\$(\"#xuzhi\").hide();
\t\t\t\t\t\t\t\$(\"#shanghu\").hide();
\t\t\t\t\t\t} else if (index == 1) {
\t\t\t\t\t\t\t\$(\"#xuzhi\").show();
\t\t\t\t\t\t\t\$(\"#xiangqing\").hide();
\t\t\t\t\t\t\t\$(\"#shanghu\").hide();
\t\t\t\t\t\t} else if (index == 2) {
\t\t\t\t\t\t\t\$(\"#shanghu\").show();
\t\t\t\t\t\t\t\$(\"#xuzhi\").hide();
\t\t\t\t\t\t\t\$(\"#xiangqing\").hide();
\t\t\t\t\t\t} else {
\t\t\t
\t\t\t\t\t\t}
\t\t\t\t\t});

\t\t\t\t} else {
\t\t\t\t\t\$(\"#tab\").removeClass(\"fixed\");
\t\t\t\t\t\$(\".tab p\").css(\"margin-top\", \"1.2rem\")
\t\t\t\t}
\t\t\t}
\t\t}
\t})()
</script>
<script>
\tvar openPhotoSwipe = function (imgsrc) {
\t\tvar pswpElement = document.querySelectorAll('.pswp')[0];
\t\tvar items = [ ];
\t\tfor(var i=0;i<imgsrc.length;i++){
\t\t\titems.push({src: imgsrc[i],w: 1024,h: 750}); 
\t\t}
\t\tvar options = {
\t\t\thistory: false,
\t\t\tfocus: false,
\t\t\ttapToClose: true, //默认关闭
\t\t\tshowAnimationDuration: 0,
\t\t\thideAnimationDuration: 0
\t\t};
\t\tvar gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options);
\t\tgallery.init();
\t};
\t
\t\$('#pay').on('click',function(){
\t\talert(gid+',goodName:'+gname+',sale_price:'+gsale_price)
\t\tJockey.send(\"pailexiong\", {key: 'buy', data: {'gid':gid.toString(),'goodName':gname,'sale_price':gsale_price}});
\t})
\tfunction tel_store(obj){
\t\talert(\$(obj).text().replace(/(^\\s*)|(\\s*\$)/g, \"\") + '123')
\t\tJockey.send(\"pailexiong\", {key: 'phone', data: \$(obj).text().replace(/(^\\s*)|(\\s*\$)/g, \"\")});
\t}\t
\t
\t//点赞
\tfunction praise_click(obj){
\t\tvar attrid = \$(obj).attr('attrid');
\t\t\$.ajax({
\t\t\turl:'/order/SetOrderCommonPra',
\t\t\ttype:'post',
\t\t\tdata:{praiseId:attrid},
\t\t\tdataType: \"json\",
\t\t\tsuccess:function( data ){
\t\t\t\tif( data.code == 0 ){
\t\t\t\t\tif( data.data.show == 1 ){
\t\t\t\t\t\t//点中
\t\t\t\t\t\t\$(obj).attr(\"src\",'/static/product/img/praise_on.png').siblings('p').text( parseInt( \$(obj).siblings('p').text() ) + 1  );
\t\t\t\t\t}else{
\t\t\t\t\t\t//取消
\t\t\t\t\t\t\$(obj).attr(\"src\",'/static/product/img/praise_off.png').siblings('p').text( parseInt( \$(obj).siblings('p').text() - 1 ) );
\t\t\t\t\t}
\t\t\t\t}else if( data.code == 1 ){
\t\t\t\t\talert('失败');
\t\t\t\t}else if( data.code == 10001 ){
\t\t\t\t\talert('未登录');
\t\t\t\t}
\t\t\t}
\t\t})
\t}
</script>

</html>
", "html/product/productDel.tpl.html", "/home/wwwroot/Paile/app/views/tpl/html/product/productDel.tpl.html");
    }
}
